package data_structure
import scala.collection.mutable.Set
// 集合（Set）是不重复元素的容器，集合中的元素是无序的
object TestSet {
  def main(args: Array[String]): Unit = {
    // 不导入包，默认创建不可变集
    var mySet = Set("Hadoop", "Spark")
    mySet+="Scala"
    println(s"mySet: ${mySet}")

    val myMutableSet = Set("Database", "BigData")
    myMutableSet += "Cloud Computing"
    println(s"mySet: ${myMutableSet}")
  }
}
